﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mangox.Model.Common
{
    public class FindByPageResult<T> : RowResult<T>
    {
        /// <summary>
        /// 返回结果集对象
        /// </summary>
        public IEnumerable<T> Result { get; set; }
        /// <summary>
        /// 总行数
        /// </summary>
        public int Total { get; set; }
    }

    public class RowResult<T>
    {
        /// <summary>
        /// 数据集
        /// </summary>
        public IList<T> rows { get; set; }

        /// <summary>
        /// 总记录
        /// </summary>
        public int records { get; set; }

        /// <summary>
        /// 当前页
        /// </summary>
        public int page { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int total { get; set; }

        /// <summary>
        /// 用于存放统计列表数据集
        /// </summary>
        public IList<T> Data { get; set; }


        /// <summary>
        /// 用于存放统计列表数据集
        /// </summary>
        public object values { get; set; }

    }
}
